package priv.w2;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

@Component
public class Husband {
	
	@Autowired
	@Qualifier("miShu")
	private MiShu wife;
	
	@Autowired
	private Car car;

	public MiShu getWife() {
		return wife;
	}

	public void setWife(MiShu wife) {
		this.wife = wife;
	}

	public Car getCar() {
		return car;
	}

	public void setCar(Car car) {
		this.car = car;
	}

	@Override
	public String toString() {
		return "Husband [wife=" + wife + ", car=" + car + "]";
	}
	
	
}
